package com.shitou.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.shitou.pojo.User;

@Repository
public class UserDao extends BaseDao<User, Integer>{

	public User login(User user) {
		String hql = "from User where name = ? and password = ?";
		return findUniqueByHQL(hql, user.getName(), user.getPassword());
	}

	public List<User> findByIds(Integer[] ids) {
		return findByIds("id", ids);
	}

	
}
